package org.jeecg.modules.wo.persontype.service;

import org.jeecg.modules.wo.persontype.entity.WoPersonType;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.exception.JeecgBootException;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.jeecg.modules.wo.persontype.entity.WoPersonTypeTree;

import java.util.List;
import java.util.Map;

/**
 * @Description: 人员类别信息
 * @Author: jeecg-boot
 * @Date:   2022-03-22
 * @Version: V1.0
 */
public interface IWoPersonTypeService extends IService<WoPersonType> {

	/**根节点父ID的值*/
	public static final String ROOT_PID_VALUE = "0";

	/**树节点有子节点状态值*/
	public static final String HASCHILD = "1";

	/**树节点无子节点状态值*/
	public static final String NOCHILD = "0";

	/**新增节点*/
	void addWoPersonType(WoPersonType woPersonType);

	/**修改节点*/
	void updateWoPersonType(WoPersonType woPersonType) throws JeecgBootException;

	/**删除节点*/
	void deleteWoPersonType(String id) throws JeecgBootException;

	/**查询所有数据，无分页*/
    List<WoPersonType> queryTreeListNoPage(QueryWrapper<WoPersonType> queryWrapper);

	List<WoPersonTypeTree> queryTreeList(QueryWrapper<WoPersonType> queryWrapper);

	String queryTreeChildIds(String typeId);

	Map nucleicCnt(WoPersonType woPersonType,int day);

}
